package com.ruoyi.vqms.service.impl;

import com.ruoyi.vqms.domain.VQMSStorehouse;
import com.ruoyi.vqms.mapper.VQMSStorehouseMapper;
import com.ruoyi.vqms.service.IVQMSStorehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 仓库 服务层实现
 */
@Service
public class VQMSStorehouseServiceImpl implements IVQMSStorehouseService {
    @Autowired
    private VQMSStorehouseMapper vqmsStorehouseMapper;

    @Override
    public List<VQMSStorehouse> selectList(VQMSStorehouse vqmsStorehouse) {
        return vqmsStorehouseMapper.selectList(vqmsStorehouse);
    }

    @Override
    public int add(VQMSStorehouse vqmsStorehouse) {
        return vqmsStorehouseMapper.add(vqmsStorehouse);
    }

    @Override
    public VQMSStorehouse getById(Long id) {
        return vqmsStorehouseMapper.getById(id);
    }

    @Override
    public int update(VQMSStorehouse vqmsStorehouse) {
        return vqmsStorehouseMapper.update(vqmsStorehouse);
    }

    @Override
    public int delete(Long[] ids) {
        return vqmsStorehouseMapper.delete(ids);
    }

    @Override
    public int countByFactoryId(Long factoryId) {
        return vqmsStorehouseMapper.countByFactoryId(factoryId);
    }
}
